import request from "@/utils/request";

//POST / api / portal / listIntegralRecord;    查询已获得积分
export function admin_listIntegralRecord(query) {
  return request({
    url: "/login/portal/listIntegralRecord",
    method: "post",
    params: query
  });
}
///api/portal/listIntegralType
export function admin_listIntegralType(query) {
  return request({
    url: "/login/portal/listIntegralType",
    method: "post",
    params: query
  });
}
// POST /api/portal/maiList 获取通讯录
export function maiList(query) {
    return request({
      url: "/login/portal/maiList",
      method: "post",
      params: query
    });
  }
//POST /api/portal/listApprovetype 获取认可类型
export function listApprovetype(query) {
    return request({
      url: "/login/portal/listApprovetype",
      method: "post",
      params: query
    });
  }
 // POST /api/portal/likeOne 认可一个人
 export function likeOne(query) {
    return request({
      url: "/login/portal/likeOne",
      method: "post",
      params: query
    });
  }
// POST /api/portal/listLikeMyRecord 获取我被被认可明细
export function listLikeMyRecord(query) {
    return request({
      url: "/login/portal/listLikeMyRecord",
      method: "post",
      params: query
    });
  }
  //POST /api/portal/listMyLikeRecord 获取认可别人明细
  export function listMyLikeRecord(query) {
    return request({
      url: "/login/portal/listMyLikeRecord",
      method: "post",
      params: query
    });
  }
  //POST /api/portal/listUser 搜索人员
  export function listUser(query) {
    return request({
      url: "/login/portal/listUser",
      method: "post",
      params: query
    });
  }
//  /api/portal/listMedalRanking
export function listMedalRanking(query) {
    return request({
      url: "/login/portal/listMedalRanking",
      method: "post",
      params: query
    });
  }
//  /api/portal/listBehavior
export function listBehavior(query) {
    return request({
      url: "/login/portal/listBehavior",
      method: "post",
      params: query
    });
  }
  // POST /api/portal/updatePortrait 修改用户头像
  export function updatePortrait(query) {
    return request({
      url: "/login/portal/updatePortrait",
      method: "post",
      params: query
    });
  }
//POST /api/portal/listMessageCount 获取最新消息条数
export function listMessageCount(query) {
    return request({
      url: "/login/portal/listMessageCount",
      method: "post",
      params: query
    });
  }
  ///api/portal/AmountntegralRecord
  export function AmountntegralRecord(query) {
    return request({
      url: "/login/portal/AmountntegralRecord",
      method: "post",
      params: query
    });
  }
  
  // /api/portal/listCollectCount
  export function get_listCollectCount(query) {
    return request({
      url: "/login/portal/listCollectCount",
      method: "post",
      params: query
    });
  }
  // /api/portal/listCommentCount
  export function get_listCommentCount(query) {
    return request({
      url: "/login/portal/listCommentCount",
      method: "post",
      params: query
    });
  }
  // /api/portal/listLikeCount
  export function get_listLikeCount(query) {
    return request({
      url: "/login/portal/listLikeCount",
      method: "post",
      params: query
    });
  }
